package com.devbobcorn.donutopia.client.event.rendering;

import com.devbobcorn.donutopia.Donutopia;
import com.devbobcorn.donutopia.entities.GingerBreadManEntity;

import net.minecraft.client.renderer.entity.BipedRenderer;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.entity.layers.BipedArmorLayer;
import net.minecraft.client.renderer.entity.model.BipedModel;
import net.minecraft.util.ResourceLocation;

public class GingerBreadManRenderer extends BipedRenderer<GingerBreadManEntity, BipedModel<GingerBreadManEntity>>{
    public GingerBreadManRenderer(EntityRendererManager manager) {
        super(manager, new BipedModel<GingerBreadManEntity>(0), 0.5F);
        this.addLayer(new BipedArmorLayer<GingerBreadManEntity, BipedModel<GingerBreadManEntity>, BipedModel<GingerBreadManEntity>>(this, new BipedModel<GingerBreadManEntity>(0.5f), new BipedModel<GingerBreadManEntity>(1)));
    }

    @Override
    public ResourceLocation getTextureLocation(GingerBreadManEntity entity) {
        return new ResourceLocation(Donutopia.MODID, "textures/ginger_man.png");
    }
}
